package com.solution.admin.point.dao.impl;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Repository;

import com.solution.admin.point.dao.SignPointSettingsDao;
import com.solution.admin.point.entity.SignPointSettingsEntity;
import com.solution.common.dao.impl.BaseDaoImpl;
import com.solution.common.page.PageBean;
import com.solution.common.page.PageParam;

/**
 * 签到积分设置信息DAO实现
 * @author xu_cc
 * @date 2017-10-20 14:18:43
 */
@Repository
public class SignPointSettingsDaoImpl extends BaseDaoImpl<SignPointSettingsEntity> implements SignPointSettingsDao {

    /**
     * 保存签到积分设置信息信息
     * @param signPointSettingsEntity
     * @return
     * @author xu_cc
     * @date 2017-10-20 14:18:43
     */
    @Override
    public long saveSignPointSettings(SignPointSettingsEntity signPointSettingsEntity) {
        return super.insert(signPointSettingsEntity);
    }

    /**
     * 分页查询签到积分设置信息信息
     * @param pageParam 分页对象
     * @param signPointSettings 分页参数
     * @return PageBean 分页参数及数据
     * @author xu_cc
     * @date 2017-10-20 14:18:43
     */
    public PageBean listSignPointSettingsPage(PageParam pageParam, Map<String, Object> param) {
        return super.listPage(pageParam, param);
    }

    /**
     * 更新签到积分设置信息
     * @param signPointSettingsEntity
     * @return
     * @author xu_cc
     * @date 2017-10-20 14:18:43
     */
    @Override
    public int updateSignPointSettings(SignPointSettingsEntity signPointSettingsEntity) {
        return super.update(signPointSettingsEntity);
    }

    /**
     * 删除签到积分设置信息
     * @param signPointSettingsId
     * @return
     * @author xu_cc
     * @date 2017-10-20 14:18:43
     */
    public int deleteSignPointSettingsById( Long id) {
        return super.deleteById(id);
    }
    
    /**
     * 根据条件查询签到积分设置信息
     * @param param
     * @return
     * @author xu_cc
     * @date 2017-10-20 14:18:43
     */
    @Override
    public List<SignPointSettingsEntity> listSignPointSettings( Map<String, Object> param) {
        return super.listBy(param);
    }
}
